package ${dir}.controller;

import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import ${dir}.entity.${table.name!};

@RestController
@RequestMapping("/${table.lowcasename}")
public class ${table.name!}Controller {

	@Autowired
	${table.name!}Service ${table.lowcasename}Service;

	@RequestMapping("/findAll")
	public List<${table.name!}> findAll(){
        return ${table.lowcasename}Service.getAll();
    }
}
